<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Lite Map</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=EX8DyYmj9Mmm14kjdz1wYk7vYO0CCTDy"></script>
<style type="text/css">
html {height: 100%;}
body{height: 100%; margin: 0px; padding: 0px;}
#container{height: 100%}
</style>
</head>
<body>
<div id="container"></div>
</body>
</html>
<script type="text/javascript">


var url = location.search; //获取url中"?"符后的字串   
var theRequest = new Object();   
if (url.indexOf("?") != -1) {   
   var str = url.substr(1);   
   strs = str.split("&");   
   for(var i = 0; i < strs.length; i ++) {   
      theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);   
   }   
}   
// 百度地图API功能
var map = new BMap.Map('container');
// 创建地图实例
var point = new BMap.Point(theRequest.longitude, theRequest.latitude);
// 创建点坐标
map.centerAndZoom(point, 11);
// 初始化地图， 设置中心点坐标和地图级别
var marker = new BMap.Marker(point);
map.addOverlay(marker);

</script>